<%@ page import="friendofmine.Photo" %>



<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'libelle', 'error')} ">
	<label for="libelle">
		<g:message code="photo.libelle.label" default="Libelle" />
		
	</label>
	<g:textField name="libelle" value="${photoInstance?.libelle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'phototaggees', 'error')} ">
	<label for="phototaggees">
		<g:message code="photo.phototaggees.label" default="Phototaggees" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${photoInstance?.phototaggees?}" var="p">
    <li><g:link controller="photoTaggee" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="photoTaggee" action="create" params="['photo.id': photoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'photoTaggee.label', default: 'PhotoTaggee')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: photoInstance, field: 'tab', 'error')} required">
	<label for="tab">
		<g:message code="photo.tab.label" default="Tab" />
		<span class="required-indicator">*</span>
	</label>
	<input type="file" id="tab" name="tab" />
</div>

